import request from '@/utils/request'

export function login(data) {
    return request({
        url: '/admin/phoneLogin',
        method: 'post',
        data
    })
}

export function getInfo() {
    return request({
        url: '/admin/getInfo',
        method: 'get'
    })
}

export function getAuth() {
    return request({
        url: '/roleAuthority/searchAuthority',
        method: 'post'
    })
}

export function logout() {
    return request({
        url: '/admin/loginOut',
        method: 'post'
    })
}
